package ${packageName};

import org.springframework.cloud.openfeign.FeignClient;
<#list importClass as f>
import ${f};
</#list>
/**
 * ${comment}
 *
 * @author feign-generator
 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
 */
@FeignClient(contextId = "${feignClassName}", value = "${feignClientValue}"<#if feignFallback>, fallbackFactory = ${feignClassName}FallBackFactory.class</#if>)
public interface ${feignClassName} {

<#list methods as m>
  /**
   * ${m.comment}
   *
<#list m.arguments as a>
   * @param ${a.argName} ${a.argName}
</#list>
   * @return ${m.returnType}
   * @author feign-generator
   * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
   */
  @RequestMapping(value = "${url}${m.url}", method = RequestMethod.${m.httpMethod})
  ${m.returnType} ${m.name}(<#list m.arguments as a><#if a_index!=0>, </#if><#list a.annotations as an>@${an} </#list>${a.argType} ${a.argName}</#list>);

</#list>
}
